/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTBCMatDo;
import edu.nii.qlks.DataTransferObject.CTBCMatDoInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTBCMatDoControl {
    CTBCMatDo ChiTietBaoCaoMatDo = new CTBCMatDo();
    
 
    public ArrayList LayDS() throws Exception{
        return ChiTietBaoCaoMatDo.LayDS();
    }
        
    public void Insert(CTBCMatDoInfo chiTietBaoCaoMatDoInfo) throws Exception{
        ChiTietBaoCaoMatDo.Insert(chiTietBaoCaoMatDoInfo);
    }
    
    public void Update(CTBCMatDoInfo chiTietBaoCaoMatDoInfo) throws Exception{
        ChiTietBaoCaoMatDo.Update(chiTietBaoCaoMatDoInfo);
    }
    
    public void Delete(CTBCMatDoInfo chiTietBaoCaoMatDoInfo) throws Exception{
        ChiTietBaoCaoMatDo.Delete(chiTietBaoCaoMatDoInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return ChiTietBaoCaoMatDo.TaoMaTuDong(maGoc, batDau);
     }
}
